package com.template.app.editor;

import com.template.app.service.GenericService;

public class ObjectEditor extends IdEditorSupport {
	
	public ObjectEditor(Class<?> clazz, GenericService service) {
		super(clazz, service);
	}

	@Override
	public void setAsText(String stringId) throws IllegalArgumentException {
		setValue(getObject(stringId));
	}
	
	@Override
	public String getAsText() {
		return getString();
	}

}
